package com.supreme.commonmybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supreme.commonentity.mysql.primary.SysPermit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

@Repository
public interface PermitMapper extends BaseMapper<SysPermit> {

    List<SysPermit> selectPermitByRoleId(@Param("roleId") Serializable roleId);

    List<SysPermit> selectPermitByUserId(@Param("userId") Serializable userId);
}
